import 'package:json_annotation/json_annotation.dart';

part 'classdetail_bean.g.dart';

@JsonSerializable()
class ClassdetailBean {
  String name;
  String photourl;
  String idcard;
  String applydate;
  String phone;
  String traintype;
  String platName;
  String schName;
  String graduation;
  String stunum;
  String address;
  bool old;
  int sex;

  ClassdetailBean(
      {this.name,
      this.photourl,
      this.idcard,
      this.applydate,
      this.phone,
      this.traintype,
      this.platName,
      this.schName,
      this.graduation,
      this.stunum,
      this.address,
      this.old,
      this.sex});

  ClassdetailBean.fromJson(Map<String, dynamic> json) {
    this.name = json['name'];
    this.photourl = json['photourl'];
    this.idcard = json['idcard'];
    this.applydate = json['applydate'];
    this.phone = json['phone'];
    this.traintype = json['traintype'];
    this.platName = json['platName'];
    this.schName = json['schName'];
    this.graduation = json['graduation'];
    this.stunum = json['stunum'];
    this.address = json['address'];
    this.old = json['old'];
    this.sex = json['sex'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['photourl'] = this.photourl;
    data['idcard'] = this.idcard;
    data['applydate'] = this.applydate;
    data['phone'] = this.phone;
    data['traintype'] = this.traintype;
    data['platName'] = this.platName;
    data['schName'] = this.schName;
    data['graduation'] = this.graduation;
    data['stunum'] = this.stunum;
    data['address'] = this.address;
    data['old'] = this.old;
    data['sex'] = this.sex;
    return data;
  }
}
